import json
import logging
from django.test import TestCase

from passages.models import Passage
from users.models import UserInfo
from rest_framework.test import APIClient, force_authenticate, APIRequestFactory


log = logging


class PassageTests(TestCase):
    def setUp(self):
        log.info("enter setup")
        self.factory = APIRequestFactory()
        receive_man = UserInfo.objects.create_user(
            username='test_get_man',
        )
        passage = Passage.objects.create(
            tags="",
            active=True,
            tag_list="",
            author=1,

        )